package com.lmqb.page;

public class PageTool {
	public static int getTotalPage(int records, int rows)
	{
		if (0 == records)
		{
			return 1;
		}
		else
		{
			if (0 == records % rows)
			{
				return records / rows;
			}
			else
			{
				return records / rows + 1;
			}
		}
	}
}
